{include file="header.html"}
<link type="text/css" rel="stylesheet" href="/style/css_02/style.css" />
<link type="text/css" rel="stylesheet" href="/style/css_02/merchant.css" />
<div class="container menu-show">
    <div class="merchant-left">
        {if $business_row.bus_ads_array}
        <div class="merchant-pd merchant-banner">
            <div class="bd">
                <ul>
                    {foreach from=$business_row.bus_ads_array item=m}
                    <li><a href="{$m.title|default:'javascript:;'}"><img src="{$m.path}" /></a></li>
                    {/foreach}
                </ul>
            </div>
            <div class="hd">
                <ul></ul>
            </div>
        </div>
        {/if}
        <div class="merchant-pd" id="m">
            <div class="merchant-top"><strong>商品列表</strong></div>
            <ul class="ten box-sizing">
                {foreach from=$data.list item=m}
                <li class="index1-img">
                    <div class="ten1">
                        <em class="scrollLoadingDiv"><a href="{'/yunbuy/detail/'|cat:$m.buy_id|url}" target="_blank" title="{$m.title}"><img alt="{$m.title}" class="scrollLoading" src="/style/images/pix.gif" data-url="{zz mod=fileurl source=$m.imgurl_src height=200 type=0}" id="buy_img_{$m.buy_id}" /></a></em>
                        <p class="banner-title"><a href="{'/yunbuy/detail/'|cat:$m.buy_id|url}" target="_blank" title="{$m.title}"><span class="color01">(第{$m.qishu}期)</span> {$m.title}</a></p>
                        <p class="banner-money">总需：{$m.need_num} 人次</p>
                        <div class="progressBar">
                            <p class="progressBar-wrap">
                                <span style="width:{$m.jindu}%"></span>
                            </p>
                            <div class="progressBar-txt">
                                <div class="txt-l">
                                    <p><b>{$m.buy_num}</b></p>
                                    <p>已参与人次</p>
                                </div>
                                <div class="txt-r">
                                    <p><b>{$m.end_num}</b></p>
                                    <p>剩余人次</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="ten2">
                        <span>我要参与：</span>
                        <div class="ten2-1">
                            <input type="button" value="-" class="ten-jian ten-i w-number-btn-minus" />
                            <input type="text" class="ten-text w-number-input" id="qty_{$m.buy_id}" data-max="{$m.end_num}" value="{$site_config.qty|intval}" />
                            <input type="button" value="+" class="ten-jian ten-i w-number-btn-plus" />
                        </div>
                        <span>人次</span>
                        <p>
                            {if $m.type eq 2}
                            <a href="javascript:;" onclick="addToCart('{$m.buy_id}','free');" class="ten-a ten-free">免费{$L.unit_yun}</a>
                            {else}
                            <a href="javascript:;" onclick="addToCart('{$m.buy_id}','buy');" class="ten-a">{$L.unit_yun_button}</a>
                            <a href="javascript:;" onclick="addToCart('{$m.buy_id}','',this)" class="ten-a1">加入购物车</a>
                            {/if}
                        </p>
                    </div>
                </li>
                {/foreach}
            </ul>
        </div>
        {include file="public_page.html"}
        {literal}
        <script type="text/javascript">
            $(function(){
                $(".w-number-btn-plus").click(function(){
                    var max = $(this).parent().children('input.w-number-input').attr('data-max');
                    var qty = $(this).parent().children('input.w-number-input').val()*1;
                    if(qty < max){
                        $(this).parent().children('input.w-number-input').val(qty+1);
                    }
                });
                $(".w-number-btn-minus").click(function(){
                    var qty = $(this).parent().children('input.w-number-input').val()*1;
                    if(qty>1){
                        $(this).parent().children('input.w-number-input').val(qty-1);
                    }
                });
                $(".w-number-input").blur(function(){
                    var max = $(this).attr('data-max')*1;
                    if($(this).val()>max){
                        $(this).val(max);
                    }
                });
            });
        </script>
        {/literal}
    </div>
    <div class="merchant-right">
        <div class="merchant-pd merchant-right1">
            <h2>欢迎光临本小店</h2>
            <em class="v"><img src="{$business_row.bus_logo|default_pic:'store'}" /><span></span></em>
            <p>店主：<span>{$business_row.bus_name}</span></p>
            <p>电话：<span>{$business_row.bus_tel}</span></p>
            <p class="merchant-btn">
                {if $business_row.bus_qq}
                <a href="http://wpa.qq.com/msgrd?v=3&uin={$business_row.bus_qq}&site=qq&menu=yes" target="_blank" class="merchant-a1">在线客服</a>
                {/if}
                <a href="{url()}" class="merchant-a2">商城首页</a>
            </p>
        </div>
        <div class="merchant-pd">
            <div class="merchant-top"><strong>店铺资料</strong></div>
            <div class="merchant-right2">
                <em class="v"><img src="{$business_row.bus_logo|default_pic:'store'}" /><span></span></em>
                <p>商家名称：<span>{$business_row.bus_name}</span></p>
                {if $business_row.bus_company_type}
                <p>实体类型：<span>{$business_row.bus_company_type}</span></p>
                {/if}
                {if $business_row.bus_company}
                <p>实体名称：<span>{$business_row.bus_company}</span></p>
                {/if}
                {if $business_row.bus_scope}
                <p>经营范围：<span>{$business_row.bus_scope}</span></p>
                {/if}
                {if $business_row.bus_area}
                <p>所属地区：<span>{$business_row.bus_area}</span></p>
                {/if}
                <p>联系地址：<span>{$business_row.bus_address}</span></p>
                {if $business_row.bus_tel}
                <p>客服电话：<span>{$business_row.bus_tel}</span></p>
                {/if}
                {if $business_row.bus_qq}
                <p>客服QQ号：<span><a href="http://wpa.qq.com/msgrd?v=3&uin={$business_row.bus_qq}&site=qq&menu=yes" target="_blank">{$business_row.bus_qq}</a></span></p>
                {/if}
                <p>入驻时间：<span>{date('Y-m-d', $business_row.time_open)}</span></p>
            </div>
        </div>
        {if $business_row.bus_intro}
        <div class="merchant-pd">
            <div class="merchant-top"><strong>商家介绍</strong></div>
            <div class="merchant-right2 merchant-right2-1">
                <p>{$business_row.bus_intro|stripcslashes}</p>
            </div>
        </div>
        {/if}
    </div>
</div>
<div class="merchant"></div>
{include file="footer.html"}
<script src="/style/jquery.SuperSlide.2.1.1.js"></script>
<script src="/style/css_02/common_02.js"></script>
<script type="text/javascript">
    $(".merchant-banner").slide({ titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"fold",autoPlay:true,interTime:5000 });
</script>
